/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconNotification: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 64a32 32 0 0 1 31.776 28.256L544 96v33.76c144 15.904 256 137.984 256 286.24l-0.032 215.104 62.4 103.968a64 64 0 0 1-17.568 84.928l-4.384 2.88a64 64 0 0 1-32.96 9.12l-138.656 0.032a160.064 160.064 0 0 1-313.6 0L216.512 832a64 64 0 0 1-54.88-96.928L224 631.136 224 416c0-148.224 112-270.304 256-286.24V96a32 32 0 0 1 32-32z m90.528 768h-181.056a96.032 96.032 0 0 0 181.056 0zM512 192a224 224 0 0 0-224 224v224a32 32 0 0 1-4.576 16.448L216.544 768h590.944l-66.912-111.552A32 32 0 0 1 736 640v-224a224 224 0 0 0-224-224z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconNotification.defaultProps = {
  size: 18,
};

export default IconNotification;
